package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * vip配置表
 * </p>
 *
 * @author Shane
 * @since 2019-10-06
 */
@TableName("vip_config")
public class VipConfig implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 类型，0-android  1-ios
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 身份
	 */
	@TableField(value = "`identity`")
	private Integer identity;

	private String pid;

	/**
	 * 会员名称
	 */
	@TableField(value = "`name`")
	private String name;

	/**
	 * 会员icon
	 */
	private String icon;

	/**
	 * 价格，单位分
	 */
	private Integer amount;

	/**
	 * 赠送金币数，单位分
	 */
	private Integer coin;

	/**
	 * 有效时间，单位月
	 */
	@TableField(value="valid_month")
	private Integer validMonth;

	/**
	 * 会员权益
	 */
	private String details;

	/**
	 * 排序
	 */
	@TableField(value="order_id")
	private Integer orderId;

	/**
	 * 充值享有赠送金币的比例
	 */
	@TableField(value="given_coin_rate")
	private Double givenCoinRate;

	/**
	 * 状态，0-未删除  1-已删除
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 可节省金额，单位：分
	 */
	@TableField(value="save_amount")
	private Integer saveAmount;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getIdentity() {
		return identity;
	}

	public void setIdentity(Integer identity) {
		this.identity = identity;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public Integer getValidMonth() {
		return validMonth;
	}

	public void setValidMonth(Integer validMonth) {
		this.validMonth = validMonth;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Double getGivenCoinRate() {
		return givenCoinRate;
	}

	public void setGivenCoinRate(Double givenCoinRate) {
		this.givenCoinRate = givenCoinRate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getSaveAmount() {
		return saveAmount;
	}

	public void setSaveAmount(Integer saveAmount) {
		this.saveAmount = saveAmount;
	}
}
